﻿using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SMSTasker
{
    public partial class fmSettings : Form
    {
        public fmSettings()
        {
            InitializeComponent();
            Localize();
        }

        private void Localize()
        {
            this.Text = Localizer.Instance.GetString("fmSettings.Text");
            label3.Text = Localizer.Instance.GetString("fmSettings.cbAddContactInfo");
            label2.Text = Localizer.Instance.GetString("fmSettings.cbPlaySound");
            label1.Text = Localizer.Instance.GetString("fmSettings.cbShowBaloon");
            label4.Text = Localizer.Instance.GetString("fmSettings.cbReceiveFromAll");
            menuItem1.Text = Localizer.Instance.GetString("fmSettings.Save");
            menuItem2.Text = Localizer.Instance.GetString("fmSettings.Cancel");
        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
        }

        private void menuItem2_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }

        private void label1_Click(object sender, EventArgs e)
        {
            cbShowBaloon.Checked = !cbShowBaloon.Checked;
        }

        private void label2_Click(object sender, EventArgs e)
        {
            cbPlaySound.Checked = !cbPlaySound.Checked;
        }

        private void label3_Click(object sender, EventArgs e)
        {
            cbAddContactInfo.Checked = !cbAddContactInfo.Checked;
        }

        private void label4_Click(object sender, EventArgs e)
        {
            cbReceiveFromAll.Checked = !cbReceiveFromAll.Checked;
        }
    }
}